package com.qianzhou.page.feign;

import com.qianzhou.common.pojo.Products;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: qian.zhou
 * @Description:
 * @Date Created in 2021-09-13-14:16
 * @Modified By:
 */
@FeignClient(name = "service-product", fallback = ProductFeignFallBack.class)
public interface ProductFeign {
    /**
     * 功能描述 通过id获取商品信息
     *
     * @param id
     * @return
     * @author qian.zhou
     * @date 2021/9/13
     */
    @RequestMapping("/product/query/{id}")
    public Products query(@PathVariable("id") Integer id);

    @RequestMapping("/service/port")
    public String getPort();

}
